package com.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.beans.UserInfo;

@Mapper
@Repository
public interface UserMapper {
	//添加用户
	int add_user(UserInfo user); 
 
	//根据id查询
	UserInfo get_user(int id);
	
	//删除用户
	int del_user(int id);
	
	//更新用户
	int update_user(UserInfo user); 
	
	//查询所有
	List<UserInfo >select_all();
	
	//登录
	UserInfo login(@Param("userName")  String userName,@Param("password")  String password);
}
